package com.net.wanjian.networkhospitalmanager.activity.my;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.net.wanjian.networkhospitalmanager.R;
import com.net.wanjian.networkhospitalmanager.activity.base.BaseActivity;
import com.net.wanjian.networkhospitalmanager.adapter.SwitchRoleAdapter;
import com.net.wanjian.networkhospitalmanager.netstatus.NetUtils;
import com.net.wanjian.networkhospitalmanager.widge.RefreshRecyclerView;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Description:
 * Created by lidongcai on 17/5/2.
 * Email:  lidongcaiocc@163.com
 */
public class SwitchRoleActivity extends BaseActivity {


    @BindView(R.id.top_back_layout)
    LinearLayout topBackLayout;
    @BindView(R.id.switch_role_recycler)
    RefreshRecyclerView switchRoleRecycler;
    private SwitchRoleAdapter roleAdapter;

    @Override
    protected void initData() {
        topBackLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SwitchRoleActivity.this.finish();
            }
        });

        roleAdapter = new SwitchRoleAdapter(this);
        switchRoleRecycler.setRefreshMode(0);
        switchRoleRecycler.setLayoutManager(new LinearLayoutManager(this));
        switchRoleRecycler.setAdapter(roleAdapter);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_switch_role;
    }

    @Override
    protected void onNetworkConnected(NetUtils.NetType type) {

    }

    @Override
    protected void onNetworkDisConnected() {

    }

}
